.class Lcom/google/android/exoplayer/audio/AudioTrack$e;
.super Lcom/google/android/exoplayer/audio/AudioTrack$d;
.source "AudioTrack.java"


# annotations
.annotation build Landroid/annotation/TargetApi;
    value = 0x17
.end annotation

.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/google/android/exoplayer/audio/AudioTrack;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0xa
    name = "e"
.end annotation


# instance fields
.field private v:Landroid/media/PlaybackParams;


# direct methods
.method public constructor <init>()V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/google/android/exoplayer/audio/AudioTrack$d;-><init>()V

    return-void
.end method

.method private i()V
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/google/android/exoplayer/audio/AudioTrack$c;->a:Landroid/media/AudioTrack;

    if-eqz v0, :cond_0

    iget-object v1, p0, Lcom/google/android/exoplayer/audio/AudioTrack$e;->v:Landroid/media/PlaybackParams;

    if-eqz v1, :cond_0

    .line 2
    invoke-virtual {v0, v1}, Landroid/media/AudioTrack;->setPlaybackParams(Landroid/media/PlaybackParams;)V

    :cond_0
    return-void
.end method


# virtual methods
.method public a(F)V
    .locals 1

    .line 8
    new-instance v0, Landroid/media/PlaybackParams;

    invoke-direct {v0}, Landroid/media/PlaybackParams;-><init>()V

    invoke-virtual {v0}, Landroid/media/PlaybackParams;->allowDefaults()Landroid/media/PlaybackParams;

    move-result-object v0

    .line 9
    invoke-virtual {v0, p1}, Landroid/media/PlaybackParams;->setSpeed(F)Landroid/media/PlaybackParams;

    .line 10
    invoke-virtual {v0, p1}, Landroid/media/PlaybackParams;->setPitch(F)Landroid/media/PlaybackParams;

    .line 11
    invoke-virtual {p0, v0}, Lcom/google/android/exoplayer/audio/AudioTrack$e;->a(Landroid/media/PlaybackParams;)V

    return-void
.end method

.method public a(Landroid/media/AudioTrack;Z)V
    .locals 0

    .line 1
    invoke-super {p0, p1, p2}, Lcom/google/android/exoplayer/audio/AudioTrack$d;->a(Landroid/media/AudioTrack;Z)V

    .line 2
    invoke-direct {p0}, Lcom/google/android/exoplayer/audio/AudioTrack$e;->i()V

    return-void
.end method

.method public a(Landroid/media/PlaybackParams;)V
    .locals 0

    if-eqz p1, :cond_0

    goto :goto_0

    .line 3
    :cond_0
    new-instance p1, Landroid/media/PlaybackParams;

    invoke-direct {p1}, Landroid/media/PlaybackParams;-><init>()V

    .line 4
    :goto_0
    invoke-virtual {p1}, Landroid/media/PlaybackParams;->allowDefaults()Landroid/media/PlaybackParams;

    move-result-object p1

    .line 5
    iput-object p1, p0, Lcom/google/android/exoplayer/audio/AudioTrack$e;->v:Landroid/media/PlaybackParams;

    .line 6
    invoke-virtual {p1}, Landroid/media/PlaybackParams;->getSpeed()F

    move-result p1

    iput p1, p0, Lcom/google/android/exoplayer/audio/AudioTrack$c;->o:F

    .line 7
    invoke-direct {p0}, Lcom/google/android/exoplayer/audio/AudioTrack$e;->i()V

    return-void
.end method
